<?php
/**
 * Created by PhpStorm.
 * User: tangchao
 * Date: 19-4-19
 * Time: 下午3:46
 */
//适配器模式 将功能相同的不同应用或扩展定义成统一的接口,如缓存有redis,memache,file.分开调用太分散.

namespace Lib;

interface IDataBase
{
    function connect($host,$user,$passwd,$dbname);
    function query($sql);
    function close();
}

